<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var a = 10;
			function countdown(){
				a--;
				document.getElementById("time").innerHTML=a;
				if(a==0){
					clearInterval(newTime)
					location.href="//www.baidu.com";
			}
			}
			var newTime =setInterval("countdown()",1000)
		</script>
	</head>
	<body>
		<div id="time"></div>
	</body>
</html>
